<link rel="stylesheet" href="resources/weui/dist/style/weui.min.css"/>
<div style="background-color: white">
	<form action="index.php/courtannounce/list" method="post" id="court_ann_form">
		<fieldset>
			<legend></legend>
			<select name="search_key" id="search_key" value="<?php echo $searchsel['search_key'] ?>" >
				<option value="" <?php if ($searchsel['search_key']==''){
					echo "selected='selected'";
				} ?> >全部</option>
				<option value="YG" <?php if ($searchsel['search_key']=='YG'){
					echo "selected='selected'";
				} ?>>原告</option>
				<option value="BG" <?php if ($searchsel['search_key']=='BG'){
					echo "selected='selected'";
				} ?>>被告</option>
				<option value="SPZ" <?php if ($searchsel['search_key']=='SPZ'){
					echo "selected='selected'";
				} ?>>审判长</option>
			</select>
			<input type="text" id="search_val" placeholder="" value="<?php
			 	if($searchsel['search_key']=='全部'){
					echo '';
				}else if($searchsel['search_key']=='YG'){
					echo $searchsel['yg'];
				}else if($searchsel['search_key']=='BG'){
					echo $searchsel['bg'];
				}
				else if($searchsel['search_key']=='SPZ'){
					echo $searchsel['spz'];
				}
			?>"/>
			<input type="text" style="display: none" name="yg" value="<?php echo $searchsel['yg']; ?>"/>
			<input type="text" style="display: none" name="bg" value="<?php echo $searchsel['bg']; ?>"/>
			<input type="text" style="display: none" name="spz" value="<?php echo $searchsel['spz']; ?>"/>
			<input type="text" style="display: none" name="cbfy" value="<?php echo $searchsel['cbfy']; ?>"/>
			<input type="button" id="search_btn" value="搜索">
		</fieldset>

	</form>

	<?php if (count($court_announces->list)==0){ ?>
	<h3>暂时没有查询到相关信息！</h3>
	<?php }else{ ?>



	<ul class="list-group">
		<?php foreach ($court_announces->list as $item):  ?>
			<li class="list-group-item court_li">
				<div class="row" style="margin-bottom: 10px;">
					<div >
						<div class="col-xs-3">
							<span>案件号</span>
						</div>
						<div class="col-xs-9">
							<span><?php echo $item->AH ?></span>
						</div>
					</div>
					<div >
						<div class="col-xs-3">
							<span>开庭时间</span>
						</div>
						<div class="col-xs-9">
							<div class="col-xs-11">
								<?php echo  $item->KTRQ ?>
							</div>
							<div style="text-align:center;">
								<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
							</div>
						</div>
					</div>
				</div>
				<div class="row detail" style="display:none; border-top-style: solid;border-top-width: 1px;border-top-color: #888888" >
					<div class="col-xs-4">案件号</div>
					<div class="col-xs-8"><?php echo $item->AH ?></div>
					<div class="col-xs-4">开庭时间</div>
					<div class="col-xs-8"><?php echo $item->KTRQ ?></div>
					<div class="col-xs-4">排期日期</div>
					<div class="col-xs-8"><?php echo $item->PQRQ ?></div>
					<div class="col-xs-4">审理法庭</div>
					<div class="col-xs-8"><?php echo $item->FT ?></div>
					<div class="col-xs-4">承办部门</div>
					<div class="col-xs-8"><?php echo $item->CBBM ?></div>
					<div class="col-xs-4">审判长</div>
					<div class="col-xs-8"><?php echo $item->SPZ ?></div>
					<div class="col-xs-4">原告</div>
					<div class="col-xs-8"><?php echo $item->YG ?></div>
					<div class="col-xs-4">被告</div>
					<div class="col-xs-8"><?php echo $item->BG ?></div>
					<div class="col-xs-4">案由</div>
					<div class="col-xs-8"><?php echo $item->AY ?></div>
				</div>
			</li>
		<?php endforeach; ?>
	</ul>
	<?php } ?>
</div>
<script src="resources/js/sd_announce.js"></script>
